<table id="user-table" class="table table-striped table-hover" data-search-form="#user-search-form">
  <thead>
    <tr>
      <th>{{'admin.operation_analysis.exit_lesson.username'|trans}}</th>
      <th>{{'admin.operation_analysis.exit_lesson'|trans}}</th>
      <th>{{'admin.operation_analysis.exit_lesson.time'|trans}}</th>
      <th>{{'admin.operation_analysis.exit_lesson.reason'|trans}}</th>
    </tr>
  </thead>
  <tbody>
    {% if exitLessonDetail %}
    {% for data in exitLessonDetail %}
    {% if courses[data.targetId].title|default(null) %}
      <tr>
         <td> {{ admin_macro.user_link(users[data.userId]) }}</td>
         <td><a href="{{ path('course_show', {id:data.targetId}) }}" target="_blank"><strong>{{ courses[data.targetId].title|default("") }}</strong></a><br></td>
         <td>{{data.createdTime|date("Y-m-d H:i:s")}}</td>
         <td >{{cancelledOrders[data.refundId].reasonNote}}</td>
      </tr>
      {% else %}
      <tr class="danger">
        <td> {{ admin_macro.user_link(users[data.userId]) }}</td>
        <td><strong>{{'admin.operation_analysis.paid_course.empty'|trans}}</strong><br></td>
        <td>{{data.createdTime|date("Y-m-d H:i:s")}}</td>
        <td >{{cancelledOrders[data.refundId].reasonNote}}</td>
      </tr>
      {% endif %}
    {% endfor %}
    {% endif %}
  </tbody>
</table>
{{ admin_macro.paginator(paginator) }}
